<template>
    <div id="status">{{info}}</div>
</template>

<script>
    export default {
        data() {
            return {
                info: "init",
            }
        },
        created(){
            this.logout();
        },
        methods: {
            logout() {
                let local_this = this;
                this.axios({
                    method:'get',
                    url:'http://127.0.0.1:8081/dologout',
                })
                    .then(function (response) {
                        let pData = response.data;
                        console.log(pData);
                        if (pData.success){
                            local_this.$cookies.set("Cus-Auth2-Token","","0h","/",'127.0.0.1');
                        }
                        local_this.info = pData.errorInfo;
                    })
                    .catch(function (error) {
                        console.log(error);
                    });
            },
        },
    }
</script>

<style scoped>

</style>